Skip to content

Conversation

@deividasstr
Copy link
Contributor

Currently, if developer changes cache size, the users who have cache, will not have their cache size reduced (until some cache clear).
This might be harmful for when the cache change is made due to memory issue (too little cache was set initially, or too much)

The change simply compares caches cache size vs requested.

There could be one case when recalculation of cache size will still happen - when cached cache size was not different from requested, but the requested cache size was more than available space at that time (so available space size was cached instead). But it does not sound like a very important case.

@deividasstr deividasstr requested a review from a team as a code owner February 13, 2025 15:10
Copy link
Contributor

@LikeTheSalad LikeTheSalad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@breedx-splk
Copy link
Contributor

Thanks @deividasstr . Can you fix up that test?

@deividasstr
Copy link
Contributor Author

Thanks @deividasstr . Can you fix up that test?

Sure, but after this PR is merged - it simplifies the storate calculation logic.

@deividasstr
Copy link
Contributor Author

This PR removes max file size caching, thus rendering this PR obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants